package com.enba.mallapi.module.auth.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@ApiModel(value = "UserPageReq", description = "用户表列表查询-入参")
public class UserPageReq implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("页码")
  @NotNull(message = "页码不能为空")
  @Min(value = 1, message = "页码不能小于1")
  private Integer pageNum;

  @ApiModelProperty("每页条数")
  @NotNull(message = "每页条数不能为空")
  @Min(value = 10, message = "每页条数不能小于10")
  private Integer pageSize;

  @ApiModelProperty("用户编码")
  private String userCode;

  @ApiModelProperty("用户名")
  private String username;

  @ApiModelProperty("手机号")
  private String mobile;

  @ApiModelProperty("部门id")
  private Long deptId;

  @ApiModelProperty("单位id")
  private Long orgId;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  private Integer status;

  @ApiModelProperty("创建时间-开始")
  private LocalDate createTimeStart;

  @ApiModelProperty("创建时间-结束")
  private LocalDate createTimeEnd;
}
